package com.alibaba.nacos.config.server.jpa.repository;

import com.alibaba.nacos.config.server.jpa.entity.ConfigInfoTagEntity;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.stereotype.Repository;

/**
 * @author
 * @date 2020-03-08 23:31
 */
@Repository
public interface ConfigInfoTagRepository extends BaseRepository<ConfigInfoTagEntity, Long> {

    ConfigInfoTagEntity findByDataIdAndGroupIdAndTenantIdAndTagId(String dataId,String groupId,
                                                                  String tenantId, String tagId);
    @Modifying
    void deleteByDataIdAndGroupIdAndTenantIdAndTagId(String dataId, String groupId, String tenantId, String tagId);
}
